package org.jfarrell.gui;

import javax.swing.*;
import java.awt.*;

public class ImageDisplay extends JFrame 
{
	public ImageDisplay( Image pImage )
	{
		super( "Displaying Image" );
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(640, 480);
		Container pane = this.getContentPane();
		
		pane.setLayout( new FlowLayout() );
		pane.add( new JLabel( new ImageIcon( pImage ) ) );
	}
}
